package com.kele.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @Version 2019
 * @Author:kele
 * @Date:2021/4/19
 * @Content:
 * @Description：文件上传配置类
 */
@Configuration
public class UploadFileConfig extends WebMvcConfigurerAdapter {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry){
        registry.addResourceHandler("/file/**").addResourceLocations("F:/crm_upload");
        super.addResourceHandlers(registry);
    }

}

